checkStatusByte
Interpretes the status byte of a return package and creates an error message
Contents
Syntax
[flag err_message] = checkStatusByte(response)
Description
[flag err_message] = checkStatusByte(response) interpretes the response byte (not hexadecimal). The return value flag indicates wether an error has occured (true = error, false = success). The string value err_message contains the error message (or '' in case of success).
Example
[status SleepTimeLimit] = NXT_SendKeepAlive('reply');
[err errmsg] = checkStatusByte(status);
See also
COM_CollectPacket, NXT_LSGetStatus
Signature
- Author: Linus Atorf (see AUTHORS)
- Date: 2007/10/15
- Copyright: 2007-2008, RWTH Aachen University